public static GraphicsDeviceManager graphics;
SpriteBatch spriteBatch;
+ public static int OutlierBounds;
+
public SuperPolarity()
: base()
{
SuperPolarity.graphics.PreferMultiSampling = true;
Content.RootDirectory = "Content";
ActorFactory.SetGame(this);
+ ParticleEffectFactory.SetGame(this);
+ ActorManager.SetGame(this);
}
/// <summary>
{
base.Initialize();
+ OutlierBounds = 100;
+
InputController.RegisterEventForButton("changePolarity", Buttons.A);
InputController.RegisterEventForKey("changePolarity", Keys.Z);
Vector2 playerPosition = new Vector2(GraphicsDevice.Viewport.TitleSafeArea.X, GraphicsDevice.Viewport.TitleSafeArea.Y + GraphicsDevice.Viewport.TitleSafeArea.Height / 2);
- ActorFactory.CreateShip(Ship.Polarity.Positive, new Vector2(200, 200));
- ActorFactory.CreateShip(Ship.Polarity.Negative, new Vector2(400, 200));
- ActorFactory.CreateMainShip(playerPosition);
+ Renderer.CheckIn(ActorFactory.CreateMainShip(playerPosition));
+ Renderer.CheckIn(ActorFactory.CreateShip(Ship.Polarity.Positive, new Vector2(200, 200)));
+ Renderer.CheckIn(ActorFactory.CreateShip(Ship.Polarity.Negative, new Vector2(400, 200)));
}
/// <summary>
spriteBatch.Begin();
- ActorManager.Draw(spriteBatch);
+ Renderer.Draw(spriteBatch);
spriteBatch.End();